package com.lzj.demo.design.strategy;

import com.lzj.demo.design.common.ServerResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class BFileResolve implements IFileStrategy{

    @Override
    public ServerResult resolve(Object param) {
        log.info("B 类型解析文件，参数：{}",param);
        //TODO B类型解析具体逻辑
        return ServerResult.success(param);
    }

    @Override
    public FileTypeResolveEnum gainFileType() {
        return FileTypeResolveEnum.File_B_RESOLVE;
    }
}
